package com.woniuxy.empserver.servcie;

import com.woniuxy.empserver.entity.TDept;
import com.woniuxy.empserver.mapper.TDeptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptService {

    @Autowired
    TDeptMapper deptMapper ;

    public List<TDept> findAll() {
        return  deptMapper.selectAll() ;
    }
}
